import request from "@/utils/requestMd5";

//订单列表
export function order_index(params) {
  return request({
    url: "/order/index",
    method: "get",
    params
  });
}

export function order_base(params) {
  return request({
    url: "/order/base",
    method: "get",
    params
  });
}

export function order_add(data) {
  return request({
    url: "/order/add",
    method: "post",
    data: data
  });
}

export function order_info(params) {
  return request({
    url: "/order/info",
    method: "get",
    params
  });
}

export function order_setOrderStatus(data) {
  return request({
    url: "/Admin/order/setOrderStatus",
    method: "post",
    data: data
  });
}

//搜索客户列表
export function getCompanyListByName(params) {
  return request({
    url: '/base/getCompanyListByName',
    method: 'get',
    params
  })
}

/* 订单导出接口 */
export function order_export_info(data) {
  return request({
    url: "/export/exports_info",
    method: "get",
    data
  });
}
export function order_export(params) {
  return request({
    url: "/export/exports",
    method: "post",
    responseType: "blob",
    params
  });
}
// 查看订单导出
export function order_info_detail(params) {
  return request({
    url: "/export/export_order_info",
    method: "post",
    responseType: "blob",
    params
  });
}
